﻿using System.Security.Principal;

namespace Inovout.Security
{
    public class UserIdentity :GenericIdentity
    {
        internal UserIdentity(IUser user, bool isAuthenticated)
            : base(user.Name) 
        {
            this.isAuthenticated = isAuthenticated;
        }
        public override string AuthenticationType
        {
            get { return "Forms"; }
        }

        private bool isAuthenticated;
        public override bool IsAuthenticated
        {
            get
            {
                return isAuthenticated;
            }
        }
    }
}
